package 结构型模式.桥接模式;

public class Main {
	public static void main(String[] args) {
		// 白色
		Color white = new White();
		// 正方形
		Shape square = new Square();
		// 白色的正方形
		square.setColor(white);
		square.draw();

		// 长方形
		Shape rectange = new Rectangle();
		rectange.setColor(white);
		rectange.draw();
	}
}